import { post, get, put } from "@/plugins/request";

// 获取用户信息
export const getMyInfo = params => get("/api/my", params);

// 修改用户信息
export const setMyInfo = params => put("/api/my", params);

// 修改密码
export const setpassword = params => put("/api/my/change/pwd", params);

//修改OA账号
export const setOA = params => post("/api/my/set/oa", params);

// 修改收件地址
export const editAddress = params => post("/api/my/address", params);

// 修改手机号
export const editPhoneNum = params => put("/api/my/change/phone", params);

// 修改手机号
export const resetpassword = params => put("/api/auth/reset/pwd", params);

// 实名认证
export const authentication = params => post("/api/my/authentication", params);
